rpm - RPM Package Manager
[SYNOPSIS] rpm OPTION PACKAGE
option
-i This installs a new package
# rpm -i package
-F This will upgrade packages, but only if an earlier version currently exists
# rpm -F package
-U This upgrades or installs the package currently installed to a newer version
# rpm -U package
-e erase (uninstall) package
# rpm -e package
-q query packages
# rpm -q package
-V verify installed packages
# rpm -V package
-K verify package signature
# rpm -K package
--rebuilddb rebuild the database indices from the installed package headers
# rpm --rebuilddb
--initdb create a new database if one doesn’t already exist
# rpm --initdb
--import import PUBKEY
# rpm --import /usr/share/rhn/RPM-GPG-KEY
options with i, U
-v show package name
# rpm -iv package
-h display progress
# rpm -ivh package
-vv Print lots of ugly debugging information
# rpm -ivv package
--nodeps Don’t do a dependency check before installing or upgrading a package
# rpm -ivh --nodeps package
--test Don’t really uninstall anything, just go through the motions
# rpm -ivh --test package
options with q
-a Query all installed packages
# rpm -qa
-i Display package information, including name, version, and description. This uses the --queryformat if one was specified
# rpm -qi package
-l List files in package
# rpm -ql package
-c List only configuration files (implies -l)
# rpm -qc package
-d List only documentation files (implies -l)
# rpm -qd package
-f Query package owning FILE
# rpm -qf /bin/bash
-R List packages on which this package depends
# rpm -qR package
-s Display the states of files in the package (implies -l)
# rpm -qs package
--last Orders the package listing by install time such that the latest packages are at the top
# rpm -q --last package
--changelog Display change information for the package
# rpm -q --changelog package